var dtFrom = new Date();
var dtTo = new Date();
dtFrom.setDate(dtFrom.getDate() - 1);
dtTo.setDate(dtTo.getDate() + 1);
this.getItem('dteSearchFrom').setValue(dtFrom.startDay());
this.getItem('dteSearchEnd').setValue(dtTo.endDay());

this.showMsg('请录入来料信息，然后点击打印生成标签。');